package com.dgut.crm.system.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.dgut.crm.system.entity.Department;
import com.dgut.crm.system.entity.dto.DepartmentNameDTO;



public interface IDepartmentService 
{
	public void saveOrUpdate(Department departmentuser);
	public void delete(Department department);
	public void deleteDepartments(List<Long> ids);
	public Department findOne(Long id);
	public Department findOne(String name);
	//动态条件查询
	public Page<Department> findAll(Specification<Department> spec, Pageable pageable);
	public List<DepartmentNameDTO> findNameAll();
}
